import request from '@/utils/request'

// 查询题库列表
export function listBank(query) {
  return request({
    url: '/teacher/bank/list',
    method: 'get',
    params: query
  })
}

// 查询题库所有列表
export function listAllBank(query) {
  return request({
    url: '/teacher/bank/listAll',
    method: 'get',
    params: query
  })
}

// 查询题库详细
export function getBank(id) {
  return request({
    url: '/teacher/bank/getInfo/' + id,
    method: 'get'
  })
}

// 新增题库
export function addBank(data) {
  return request({
    url: '/teacher/bank/add',
    method: 'post',
    data: data
  })
}

// 修改题库
export function updateBank(data) {
  return request({
    url: '/teacher/bank/edit',
    method: 'post',
    data: data
  })
}

// 删除题库
export function delBank(id) {
  return request({
    url: '/teacher/bank/remove/' + id,
    method: 'get'
  })
}

// delBankByIds 批量删除
export function delBankByIds(ids) {
  return request({
    url: '/teacher/bank/removeByIds/' + ids,
    method: 'get'
  })
}


